var windowNameIndex = parent.layer.getFrameIndex(window.name); //获取窗口索引
$("#submission").click(function () {
    var customerStatus = $('input:radio[name="customerStatus"]:checked').val();
    var customerId = $("#customerIdValue").val();
    var remarks = $("#remarks").val();
    if (remarks == null || remarks == "") {
        alert("请填写备注！");
        return;
    }
    $.ajax({
        url: Feng.ctxPath + "/customer/choiceCustomerStatus",
        type: 'POST',
        data: {
            customerId: customerId,
            remarks: remarks,
            customerStatus: customerStatus
        },
        success: function (data) {
            Feng.success("保存成功!");
            window.parent.Consultant.table.refresh();
            parent.layer.close(windowNameIndex);
        },
        error: function (data) {
            alert("没有权限，请联系系统管理员！");
        }
    })
});

$("#submisclose").click(function () {
    parent.layer.close(windowNameIndex);
});